plotPlane
{rockchalk}
Draw a 3-D regression plot for two predictors
read_excel
{readxl}
Read an Excel file
rename
{dplyr}
Renames columns in a data frame or tibble.
group_by
{dplyr}
Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise
geom_point
{GGPLOT2}
Generates a scatter plot
ggsave
{ggplot2}
Saves the last ggplot or a specified ggplot object to a file
ls
{base}
Return a vector of character strings giving the names of the objects in the specified environment
data.frame
{base}
Create a data.frame from vectors
vcovHC
{sandwich}
Heteroscedasticity-consistent estimation of the covariance matrix of the coefficient estimates
class
{base}
Retrieve class of an R object
recode
{dplyr}
Recode a variable
group_tt
{tinytable}
Grouping in tinytable
scale_x_continuous
{GGPLOT2}
Customise continuous x axis
modelsummary
{modelsummary}
Creates regression and data tables
log
{base}
log (default base = e)
list
{base}
Create a list object
t.test
{stats}
Performs one and two sample t-tests on vectors of data.
ggtitle
{GGPLOT2}
Generates a title for a ggplot graph
read.csv
{utils}
Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters
library
{base}
Load an R package
colnames
{base}
Retrieve column names of a data frame
setwd
{base}
Set Working Directory
leveneTest
{car}
Computes Levene’s test for homogeneity of variance across groups.
table
{base}
Obtain frequency table of a variable/cross-tabulation of two variables
labs
{GGPLOT2}
Customise labels in GGPLOT2
median
{stats}
Get median of a vector
slice_sample
{dplyr}
Randomly selects rows from a data frame or tibble.
mutate
{dplyr}
Modify/create a column in a data frame
c
{base}
Combine values/vectors into a vector
set.seed
{base}
Initialise a pseudorandom number generator.
theme_latex
{tinytable}
A theme for modelsummary/tinytable tables
prop.test
{stats}
Test of Equal or Given Proportions
theme
{GGPLOT2}
Set theme for GGPLOT2
coeftest
{lmtest}
Inference for Estimated Coefficients
ggplot
{GGPLOT2}
Create a ggplot graph
ylab
{GGPLOT2}
Label the y axis (ggplot)
round
{base}
Rounds numbers
levels
{base}
Get levels of a factor
is.na
{base}
Check if a value is NA/elements of vector are NA
xlab
{GGPLOT2}
Label the x axis (ggplot)
ordered
{dplyr}
Create an ordered factor
cut
{base}
Convert Numeric to Factor
nrow
{base}
Get number of rows of a data frame
droplevels
{base}
Drop Unused Levels from Factors
geom_smooth
{GGPLOT2}
Generates a smoothed conditional means curve / line
geom_hline
{GGPLOT2}
Add a horizontal line in GGPLOT2
sample_frac
{dplyr}
Sample a fraction of observations from a data frame
mean
{base}
Get mean of a vector
vif
{car}
Calculate Variance Inflation Factor
element_line
{GGPLOT2}
Customise line appearance
rm
{base}
Remove objects
dim
{base}
Get dimensions of a data frame
is.element
{base}
Check if a value is element of a vector
confint
{stats}
Calculate confidence Intervals for Model Parameters
subset
{base}
Return subsets of vectors, matrices or data frames which meet conditions.
aes
{GGPLOT2}
Construct aesthetic mapping of a ggplot graph
theme_classic
{GGPLOT2}
A minimalistic theme with no gridlines
min
{base}
Get minimum of a vector
as.numeric
{base}
Coerce a vector to numeric
bptest
{lmtest}
Breusch-Pagan Test for Homoscedasticity
lm
{base}
Fit a linear model
pchisq
{stats}
Gives the distribution function of the chi-squared distribution
with
{base}
evaluate expression in the context of a data frame
resid
{stats}
Extracts model residuals from objects returned by modeling functions
filter
{dplyr}
Filter out rows of a data frame according to logical vector
relevel
{stats}
Reorder Levels of Factor
element_blank
{GGPLOT2}
This theme element draws nothing, and assigns no space
nobs
{gdata}
Compute the number of non-missing observations
select
{dplyr}
Select columns from a tibble/data frame
element_text
{GGPLOT2}
Customise text in GGPLOT2
chisq.test
{stats}
Chi-Squared test (e.g. for cross-tabulations)
geom_vline
{GGPLOT2}
Draws a vertical line
scale_y_continuous
{GGPLOT2}
Customise continuous y axis
ungroup
{dplyr}
Resolve grouping created with “group_by”
summary
{base}
Obtain summary statistics or detailed regression output
attach
{base}
Attach Set of R Objects to Search Path
prop.table
{base}
Transform frequency table into table of proportions
names
{base}
Retrieve names of a list/vector
ifelse
{base}
Return a or b depending on the value of test
The end!